package com.cq.hd.order.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 订单本金手续费补转表-临时表
 * </p>
 *
 * @author mYunYu
 * @since 2024-01-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_order_settle_bill_fee_temp")
@ApiModel(value="TbOrderSettleBillFeeTempPo对象", description="订单本金手续费补转表-临时表")
public class TbOrderSettleBillFeeTempPo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "订单结算支付流水记录表id")
    @TableField("order_settle_bill_id")
    private Long orderSettleBillId;

    @ApiModelProperty(value = "交易类型(1-商品本金,2-商品补贴,3-佣金)")
    @TableField("trade_type")
    private Integer tradeType;

    @ApiModelProperty(value = "手续费金额")
    @TableField("fee_amt")
    private BigDecimal feeAmt;

    @ApiModelProperty(value = "进款方商户号")
    @TableField("in_hf_id")
    private String inHfId;

    @ApiModelProperty(value = "进款方现金户")
    @TableField("in_hf_acct_id")
    private String inHfAcctId;

    @ApiModelProperty(value = "请求日期")
    @TableField("req_date")
    private String reqDate;

    @ApiModelProperty(value = "请求流水号")
    @TableField("req_seq_id")
    private String reqSeqId;

    @ApiModelProperty(value = "交易状态(0-待支付，1-支付成功，2-支付失败,3-处理中)")
    @TableField("trade_state")
    private Integer tradeState;

    @ApiModelProperty(value = "交易失败原因")
    @TableField("trade_fail_reason")
    private String tradeFailReason;

    @ApiModelProperty(value = "交易时间")
    @TableField("trade_time")
    private LocalDateTime tradeTime;

    @ApiModelProperty(value = "创建者")
    @TableField("create_by")
    private Integer createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者")
    @TableField("update_by")
    private Integer updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "删除状态:0-正常，1-已删除")
    @TableField("del_state")
    private Integer delState;
}
